package Hw2;

import java.util.Scanner;

public class test02 {


    public static void main(String[] args) {
        Vehicle car = new Vehicle();
        System.out.println("给交通工具速度赋初值");
        car.setSpeed(new Scanner(System.in).nextInt());
        System.out.println("交通工具现在的速度："+ car.getSpeed()+"KM/S");
        System.out.print("加速后： ");
        car.speedUp();
        System.out.println(car.getSpeed()+"KM/s");
    }
}
